package com.example.ui.contact.bean;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.example.huashangapp.R;
import com.example.net.NetContact;


/**
 *好友请求推送项
 *friend对象属性类
 * @author Leone
 *
 */
public class RequestItem implements Comparable<RequestItem> { //,OnClickListener
	private String response;       //推送类型标识
	private String typeId;         //好友请求类型
	private String userId;         //用户注册时分配的id
	private String mobile;         //用户手机号
	private String nickname;       //用户名
	private String gender;         //用户性别
	private String company;        //用户所在公司
	private String typeJob;        //职位类型
	private String occupation;     //行业类型
	private String supply;         //公司类型  
	private String requirement;    
	private String tokenType;
	private String pic;
	
	private int right_btn_r = R.drawable.yes_btn_0;  //打勾图片的路径
	private int error_btn_r = R.drawable.no_btn_0;	 //设置打叉图片的路径
	private int right_type = View.VISIBLE;           //设置打钩的图片是否可见
	private int error_type = View.VISIBLE;           //设置打叉的图片是否可见
	
	public int getRight_type() {
		return right_type;
	}
	public void setRight_type(int right_type) {
		this.right_type = right_type;
	}
	
	public int getError_type() {
		return error_type;
	}
	public void setError_type(int error_type) {
		this.error_type = error_type;
	}
	
	
	public int getRight_btn_r() {
		return right_btn_r;
	}

	public void setRight_btn_r(int right_btn_r) {
		this.right_btn_r = right_btn_r;
	}

	public int getError_btn_r() {
		return error_btn_r;
	}

	public void setError_btn_r(int error_btn_r) {
		this.error_btn_r = error_btn_r;
	}

	
	
	
	private long time;// 消息日期	
	public RequestItem(){
		
	}
	
	public String getResponse(){
		return response;
	}
	public void setResponse(String response){
		this.response = response;
	}
	
	public void setType(String type) {
		this.typeId = type;
	}	
	
	public String getType() {
		return this.typeId;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String Id) {
		this.userId = Id;
	}	
	
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
		
	
	public String getNick() {
		return nickname;
	}

	public void setNick(String username) {
		this.nickname = username;
	}
	
	public String getGender(){
		return this.gender;
	}
	public void setGender(String gender){
		this.gender = gender;
	}
	
	public String getCompany(){
		return this.company;
	}
	public void setCompany(String company){
		this.company = company;
	}
	
	public String getTypeJob() {
		return typeJob;
	}

	public void setTypeJob(String typeJob) {
		this.typeJob = typeJob;
	}	
	

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getSupply() {
		return supply;
	}

	public void setSupply(String supply) {
		this.supply = supply;
	}

	public String getRequirement() {
		return requirement;
	}

	public void setRequirement(String requirement) {
		this.requirement = requirement;
	}

	public String getTokenType() {
		return tokenType;
	}

	public void setTokenType(String tokenType) {
		this.tokenType = tokenType;
	}
	
	
	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}
	
	@Override
	public int compareTo(RequestItem another) {
		return (int) (another.time - this.time);
	}
	
	//	@Override
	//	public void onClick(View v) {
	//		switch(v.getId()){
	//		case R.id.yesId:
	//			setError_type(View.INVISIBLE);
	//			setRight_type(View.INVISIBLE);
	//			break;
	//		case R.id.noId:
	//			setError_type(View.INVISIBLE);
	//			setRight_type(View.INVISIBLE);
	//			break;
	//		
	//		}
	//	}



}
